import { PrimaryGeneratedColumn, Column, ManyToOne, JoinColumn,Entity } from 'typeorm';
import { Article } from './article.entity'

@Entity()
export class ArticleCover {
    @PrimaryGeneratedColumn('uuid')
    id: string;


    @ManyToOne(() => Article, article => article.article_id)
    // @JoinColumn({ name: 'article_id' })
    article: Article;

    @Column()
    url: string;


}